package com.lyh.system.service.impl;

import java.util.List;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.lyh.common.enums.AmountStatusEnum;
import com.lyh.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.lyh.system.mapper.SysAreaOrderMapper;
import com.lyh.system.domain.SysAreaOrder;
import com.lyh.system.service.ISysAreaOrderService;
import org.springframework.transaction.annotation.Transactional;

/**
 * 进场单量设置Service业务层处理
 *
 * @author lyh
 * @date 2023-04-26
 */
@Service
public class SysAreaOrderServiceImpl implements ISysAreaOrderService
{
    @Autowired
    private SysAreaOrderMapper sysAreaOrderMapper;


    @Override
    public List<SysAreaOrder> listInfo() {
        List<SysAreaOrder> sysAreaOrders = sysAreaOrderMapper.selectList(new LambdaQueryWrapper<SysAreaOrder>());
        return sysAreaOrders;
    }

    @Override
    @Transactional
    public void update(List<SysAreaOrder> list) {
        if(list!=null && list.size()>0){
            list.stream().forEach(c->{
                sysAreaOrderMapper.updateById(c);
            });

        }

    }


}
